import { tableServiceInterface } from "@/common/interface/table.interface";
import { $songCategoryList, $songCategoryAdd, $songCategoryDelete, $songCategoryDetail, $songCategoryListTree, $songCategoryUpdate } from "@/apis/piano/songCategory/songCategory";
import { songCategoryAddInterface, songCategoryListInterface, songCategoryUpdateInterface } from "@/apis/piano/songCategory/songCategory.interface";
import to from "await-to-js";
export default class songCategoryService implements tableServiceInterface {
  async getTable(e: songCategoryListInterface): Promise<any> {
    return $songCategoryList(e);
  }
  deleteMultiple(e: Array<string>): Promise<any> {
    console.log(e);
    return $songCategoryDelete(e);
  }
  edit(e: songCategoryUpdateInterface): Promise<any> {
    return $songCategoryUpdate(e);
  }
  add(e: songCategoryAddInterface): Promise<any> {
    return $songCategoryAdd(e);
  }
  detail(e: string): Promise<any> {
    return $songCategoryDetail(e);
  }
  tree(): Promise<any> {
    return $songCategoryListTree();
  }
}